﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Simple.Common.Core.Log;
using Simple.Service;

namespace HBootStrap.Admin.Controllers
{
    public class HomeController : BaseController
    {
        private readonly FormsAuthenticationService _formsAuthenticationService;
        public HomeController(UserService userService, FormsAuthenticationService formsAuthenticationService)
        {
            _formsAuthenticationService = formsAuthenticationService;
        }

        public ActionResult Index()
        {
            var model = _formsAuthenticationService.GetAuthenticatedCustomer();
            return View(model);
        }

        public ActionResult Default()
        {
            return View();
        }
    }
}
